package cn.tedu.controllor;
/*
 封装类；model对象也叫POJO（Plain Ordinary Java Object）：简单的Java对象
 实际就是【普通JavaBeans】；支持业务逻辑的协助类
 */
public class Car {
  //全部采用引用类型进行封装
    private  Integer id;
    private  String name;
    private  String type;
    private  String color;
    private  Double price;
//alt+insert 进入选择；多选按住shift选定

  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public String getType() {
    return type;
  }

  public void setType(String type) {
    this.type = type;
  }

  public String getColor() {
    return color;
  }

  public void setColor(String color) {
    this.color = color;
  }

  public Double getPrice() {
    return price;
  }

  public void setPrice(Double price) {
    this.price = price;
  }

  @Override
  public String toString() {
    return "Car{" +
            "id=" + id +
            ", name='" + name + '\'' +
            ", type='" + type + '\'' +
            ", color='" + color + '\'' +
            ", price=" + price +
            '}';
  }
}
